home *** CD-ROM | disk | FTP | other *** search
- Path: news.rwth-aachen.de!news
- From: bayerle@pool.informatik.rwth-aachen.de (Edmund Bayerle)
- Newsgroups: comp.lang.c++
- Subject: Re: No dynamic binding??
- Date: Sun, 07 Jan 1996 00:08:55 GMT
- Organization: RWTH -Aachen / Rechnerbetrieb Informatik
- Message-ID: <4cn2ol$fpa@news.rwth-aachen.de>
- References: <8B452C3.0054012D3F.uuout@swcbbs.com>
- Reply-To: Edmund Bayerle <bayerle@pool.informatik.rwth-aachen.de>
- NNTP-Posting-Host: edmund.kawo2.rwth-aachen.de
- X-Newsreader: Forte Free Agent 1.0.82
-
- ken.brady@swcbbs.com (KEN BRADY) wrote:
-
-
- >class Object {
- > ...
- >};
-
- >class Atype: Object {
- > ...
- >};
-
- >typedef Object * Objptr
-
- >void AFunction(Objptr O)
- >{...}
-
-
- > AType A;
- > AFunction(A);
-
- Note that A is not of Type pointer to Object, it is an Object itself.
- Try:
- AFunction(&A);
-
- "AFunction" is a ordinary function that has nothing to do with dynamic
- binding, nor has it something in common with virtual function.
-
-
- Edmund B.
-
-